package com.yunzhong.appointment.report.service.impl;

import com.yunzhong.appointment.mapper.AppointmentorderMapper;
import com.yunzhong.appointment.mapper.SchedulingMapper;
import com.yunzhong.appointment.report.service.IAppointmentorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class AppointmentorderServiceImpl implements IAppointmentorderService {


    @Autowired
    private AppointmentorderMapper appointmentorderMapper;
    @Autowired
    private SchedulingMapper schedulingMapper;

    /**
     * 查询医生被预约次数统计
     * @return
     */
    @Override
    public List<Map<String, Object>> queryCount() {
        return appointmentorderMapper.queryCount();
    }

    /**
     * 医生排班预约
     * @return
     */
    @Override
    public List<Map<String, Object>> queryPb() {
        return schedulingMapper.queryPb();
    }
}
